<?php
/*PHP DATEI auslesen um active STatus zu ermitteln: */

$script=basename($_SERVER['SCRIPT_NAME']);  
echo $script;

?>


<ul class="menu">
<?php if ($script=="index.php") { ?>
<li><a href="index.php" class="active"><span>Startseite</span></a></li> <?php } else {?>
<li><a href="index.php"><span>Startseite</span></a></li> <?php } ?>

<?php if ($script=="menu.php") { ?>
<li><a href="menu.php" class="active"><span>Menugenerator</span></a></li> <?php } else {?>
<li><a href="menu.php"><span>Menugenerator</span></a></li> <?php } ?>

<?php if ($script=="setting.php") { ?>
<li><a href="setting.php" class="active"><span>Einstellungen</span></a></li> <?php } else {?>
<li><a href="setting.php"><span>Einstellungen</span></a></li> <?php } ?>


  <li><a href=""><span>Benutzer</span></a></li>
  <li><a href=""><span>Backup</span></a></li>
</ul>